import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 根据实体属性分页查询集采汇总
    getYearPlanList (params) {
        return httpPost({
            url: '/material/yearPlan/listByEntity',
            params
        })
    },
    //修改后保存基本信息
    updateYearBasicFormData (params) {
        return httpPost({
            url: '/material/yearPlan/update',
            params
        })
    },
    //修改年度计划变更基本信息
    updateYearChangeBasicFormData (params) {
        return httpPost({
            url: '/material/yearPlanChanged/update',
            params
        })
    },
    //修改年度计划明细
    updateYearDetai (params) {
        return httpPost({
            url: '/material/yearPlan/updateList',
            params
        })
    },

    //修改年度计划变更明细
    updateYearChangeDetai (params) {
        return httpPost({
            url: '/material/yearPlanChanged/updateList',
            params
        })
    },
    //新增年度计划变更基本信息
    AddYearChange (params) {
        return httpPost({
            url: '/material/yearPlanChanged/create',
            params
        })
    },
    //新增年度计划
    AddYear (params) {
        return httpPost({
            url: '/material/yearPlan/create',
            params
        })
    }
}

export default request